package com.auction.job.core.schedule;

import com.auction.job.domain.config.SystemConfig;
import com.yisu.auction.ewf.common.spring.SpringContext;
import com.yisu.auction.ewf.common.web.HttpWebClient;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by nichole on 2017/9/29.
 */
public class PushJob extends BaseJob {

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        SystemConfig systemConfig = SpringContext.getBean("systemConfig");
        String result = HttpWebClient.post(systemConfig.getPushMessageUrl());
        LOG.info("push message response : {}", result);
    }
}
